package BusinessLogic;

import java.util.ArrayList;

import Data.ReturnGoodRecord;
import Data.SaleRecordData;

public interface IReturnModel {

	public SaleRecordData getSaleRecordDataBySaleID(int SaleID);
	public boolean addItem(int SaleID,int GoodID,int GoodNumber,double price,double specialPrice,String date);
	public boolean removeItem(int SaleID,int GoodID,int GoodNumber,double price,double specialPrice,String date);
	public double returnGood();
	public boolean startUpdate();
	public String getGoodDescriptionByID(int ID);
	public double getGoodPriceByID(int ID);
	public double getGoodSpecialPriceByID(int ID);
	public String getGoodSpecialTimeStartByID(int ID);
	public String getGoodSpecialTimeEndByID(int ID);
	public double getGoodNumberByID(int ID);
	public String getUserNameByID(int ID);
	public String getUserPasswordByID(int ID);
	public Double getGoodOriginalPriceByID(int ID);
	public Double getGoodOriginalSpecialPriceByID(int ID);
	public String getSaleDateByID(int ID);
	public int getNextReturnID();
	public boolean saveReturnGoodRecord(int goodID,String goodName,double returnNumber,double price,double specialPrice,String returnDate,int saleID);
	public ArrayList<ReturnGoodRecord> readReturnGoodRecordBySaleID(int ID);
}
